const Slogbar = require("./index");

let bar = new Slogbar("进度 :percent :token1 :bar :current/:total :totalFormat", {
	width: 100,
});

let step = 0;

let timer = setInterval(() => {
	if (step >= 100) {
		return clearInterval(timer);
	}
	bar.render({
		current: ++step,
		total: 100,
		token1: "something",
	});
}, 500);


